<template>
  <div>
    <!-- 顶部 -->
    <div class="top">
      <span class="fu" @click="fun($event)">&lt;</span>
      <span class="i">新增地址</span>
      <ul>
        <li></li>
        <li></li>
        <li></li>
      </ul>
    </div>
    <div>
      <section>
        <span>收货人</span>
        <input type="text" placeholder="请输入或选择收货人" />
      </section>
      <section>
        <span>手机号码</span>
        <input type="text" placeholder="请输入手机号" />
      </section>
      <section>
        <span>所在地区</span>
        <input type="text" placeholder="请输入所在地" />
      </section>
      <section>
        <span>邮编</span>
        <input type="text" placeholder="请输入邮编" />
      </section>
    </div>
    <div class="cun" @click="haha()">保存</div>
  </div>
</template>

<script>
export default {
  methods: {
    fun() {
      this.$router.go(-1);
    },
    haha(){
      alert("保存成功")
      this.$router.push("/index")
    }
  },
};
</script>

<style lang="scss" scoped>
.top {
  background-color: #4187cd;
  color: white;
  display: flex;
  height: 60px;
  .i {
    display: block;
    margin-left: 104px;
    line-height: 60px;
    font-size: 20px;
  }
  .fu {
    font-size: 36px;
    margin-left: 16px;
    line-height: .6rem;
  }
  ul {
    position: absolute;
    right: 10px;
    top: 26px;
  }
  li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    float: left;
    background-color: white;
    margin-right: 6px;
    list-style: none;
  }
}
section {
  height: 0.6rem;
  border-bottom: 0.01rem solid rgba(128, 128, 128, 0.177);
  span {
    // font-size: 0.2rem;
    text-align: center;
    line-height: 0.6rem;
    margin-left: 0.3rem;
    // font-weight: 700;
  }
  input {
    margin-right: 0.4rem;
    float: right;
    line-height: 0.6rem;
  }
  input:placeholder-shown {
    font-size: 0.14rem;
  }
}
.cun {
  color: rgba(0, 128, 0, 0.664);
  margin: auto;
  width: 2rem;
  height: 0.4rem;
  border: 0.01rem solid rgba(0, 128, 0, 0.562);
  text-align: center;
  line-height: 0.4rem;
  margin-top: 40px;
  border-radius: 0.1rem;
}
</style>